10/01/2002
5:45 PM

 

PreviousNext
 
   
Frankentosh: Building Robots using Mac OS X
 
   
  • Robocode -- Keeping track of enemies
    • Keeping track of things requires being able to see them in detail -- which means effectively using your radar
    • There's a couple of specific ways to use the radar that will get you the information you need
      • Scan around the whole gameboard to determine who and where the enemies are
      • Concentrate on a few enemies: you can figure out when the enemy fires & the enemy's movement strategy
    • One pretty popular idea is to scan like mad at the enemy, and then scan the whole board every once in a while
    • This gets you the benefits of both, and lets you see another robot who's attacking you... and gives you a chance to switch enemies if necessary
 
   
Ted Stevko, Stevko Studios http://www.plasticnoodle.com